package com.gc.business.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gc.common.base.BaseEntity;
import com.gc.system.domain.SysUser;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.util.Date;

/**
 * 配件申请表 gc_part_application
 * 
 * @author liujinteng
 * @date 2020-12-03
 */
@EqualsAndHashCode(callSuper = true)
@ToString
@Data
@Accessors(chain = true)
@TableName("gc_part_application")
public class PartApplication extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @TableId
    private Long partId;

    /**
     * 库存ID
     */
    private Long inventoryId;
    /**
    * 配件名称
    */
    private String partName;
    /**
    * 配件总量
    */
    private Integer partTotal;
    /**
     * 规格ID
     */
    private Long sizeId;
    /**
     * 规格名称
     */
    private String sizeName;
    /**
     * 规格值ID
     */
    private Long priceId;
    /**
     * 规格值名称
     */
    private String priceName;
    /**
    * 领取人ID
    */
    private Long userId;
    /**
    * 领取人
    */
    private String receivePeople;
    /**
    * 领取日期
    */
    private String receiveDate;
    /**
    * 领取数量
    */
    private Integer receiveNum;
    /**
    * 项目名称
    */
    private String projectName;
    /**
    * 审批状态(0:待审批;1:通过;2:驳回)
    */
    private String auditStatus;
    /**
     * 驳回原因
     */
    private String rejectCause;
    /**
     * 审批人
     */
    private Long approveId;
    /**
     * 出库记录ID
     */
    private Long recordId;

    private String partUnit;


    @TableField(exist = false)
    private SysUser user;
    @TableField(exist = false)
    private InventorySize inventorySize;
    @TableField(exist = false)
    private InventorySizePrice inventorySizePrice;
}
